package com.pyf.demo.controller;

import com.pyf.demo.service.impl.AsyncServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pengyifeng
 * @version 1.0.0
 * @ClassName AsyncController.java
 * @Description TODO
 * @createTime 2020年12月09日 17:53:00
 */
@RestController
public class AsyncController {

    @Autowired
    private AsyncServiceImpl asyncService;

    @RequestMapping("/senMsg")
    public void senMsg(){
        asyncService.sendMsg();
    }
}
